#pragma once

#include "DDThread.h"
#include "DD_ImagePro.h"

typedef int (WINAPI *OnLoadFileListCBFun)(char *pFileName,zkImgFileTail *pFileTail,DWORD dwContext,void *pContext);

class DDLoadFileList : public DDThread
{
public:
	DDLoadFileList(void);
	~DDLoadFileList(void); 

public:
	int SetLoadFileListCBFun(OnLoadFileListCBFun fun,DWORD dwContext,void *pContext);
	int SetFileDir(char *pFilrDir);

private:
	virtual int DDThdDispatch(HANDLE hExitEvent = NULL);

public:
	OnLoadFileListCBFun m_CBFun;
	DWORD               m_dwContext;
	void               *m_pContext;

private:
	char             m_szFileDir[MAX_PATH];
};
